<template>
  <div class="hello">
  <el-container class="index-on">
    <el-aside class="left-menu">
       <leftmenu></leftmenu>
    </el-aside>
    <el-container class="right-menu">
      <el-header class="index-header">
        <topmenu></topmenu>
      </el-header>
      <el-main class="index-main">
         <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
  </div>
</template>

<script>
import leftmenu from "../components/leftMenu"
import topmenu from "../components/topMenu"
export default {
    components:{
        leftmenu,
        topmenu
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>

<style lang="scss" scoped>
.hello{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.index-on{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.left-menu{
  width:240px !important;
  height: 100%;
  background-color: #334157;
  margin: 0px;
}
.index-header{
  background-color: #334157;
  padding: 0;
}
.index-main{
  padding: 0;
}
.right-menu{
  height: 100%;
  margin: 0px;
}
.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #334157;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
